import request from '@/untils/request'


//查部门
export const selectAllDep=()=>{
  return request({
    url:`selectAllDep`,
    method:"post",
})
};

//查职位
export const selectPoInfo=()=>{
  return request({
    url:`selectPoInfo`,
    method:"post",
  })
}


// 分页查询员工信息
export const selectAll = (params) => {
  return request({
    url: 'selectAll',
    method: 'get',
    params:params
  });
};

//注册员工信息
export const registerAccount = (data) => {
  return request({
    url: 'registerAccount',
    method: 'post',
    data
  });
};

//查询单个信息
export const selectOne = (params) => {
  return request({
    url: 'selectOne',
    method: 'post',
    params:params
  });
};


// //查询单个信息
// export const selectOne = (params) => {
//   return request({
//     url: 'selectOne',
//     method: 'post',
//     params:params
//   });
// };  


export const updateUserDepart = (data) => {
  return request({
    url: 'updateUserDepart',
    method: 'post',
    data
  });
};




  
